﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _13AI状态类
{
    /// <summary>
    /// 巡逻状态
    /// </summary>
    class PatrolState : AIState
    {
        public PatrolState(Monster m) : base(m)
        {
        }

        public override void Handle()
        {
            Console.WriteLine("{0}处于巡逻状态",_monster.Name);
            if (_monster.IsLookPlayer)
            {
                _monster.NpcState = new ChaseState(_monster);
            }
            throw new NotImplementedException();
        }
    }
}
